package pkmn.attributes;

import java.util.Random;

public class IvAttributes{

    private int hp;
    private int attack;
    private int defense;
    private int spAttack;
    private int spDefense;
    private int speed;

    public IvAttributes(){
        Random random = new Random();
        this.hp = random.nextInt(32);
        this.attack = random.nextInt(32);
        this.defense = random.nextInt(32);
        this.spAttack = random.nextInt(32);
        this.spDefense = random.nextInt(32);
        this.speed = random.nextInt(32);
    }

    public int getHP(){
        return this.hp;
    }

    public int getAttack(){
        return this.attack;
    }

    public int getDefense(){
        return this.defense;
    }

    public int getSpAttack(){
        return this.spAttack;
    }

    public int getSpDefense(){
        return this.spDefense;
    }

    public int getSpeed(){
        return this.speed;
    }

    @Override
    public String toString() {
        return "-Attack: " + this.attack
               + "\n-Deffense: " + this.defense
               + "\n-Sp. Attack: " + this.spAttack
               + "\n-Sp. Deffense: " + this.spDefense
               + "\n-Speed: " + this.speed;
    }
}
